﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace vudu.ClasesDominio
{
    public class Prelacion
    {

        #region Atributos Privados
        
        private Materia _miMateriaPensum;
        private int _semestreMateriaPensum;
        private int _creditoMateriaPensum;
        private List<Materia> _prelacionMateriaPensum;
        
        #endregion

        #region Constructor

        public Prelacion()
        {
            Prelaciones = new List<Materia>();
        }

        public Prelacion(Materia miMateriaPensum, int semestreMateriaPensum, int creditoMateriaPensum)
        {
            MiMateriaPensum = miMateriaPensum;
            SemestreMateriaPensum = semestreMateriaPensum;
            CreditoMateriaPensum = creditoMateriaPensum;
        }  

        #endregion

        #region Propiedades

        public Materia MiMateriaPensum
        {
            get
            {
                return _miMateriaPensum;
            }
            set
            {
                _miMateriaPensum = value;
            }
        }

        public int SemestreMateriaPensum
        {
            get
            {
                return _semestreMateriaPensum;
            }
            set
            {
                _semestreMateriaPensum = value;
            }
        }

        public int CreditoMateriaPensum
        {
            get
            {
                return _creditoMateriaPensum;
            }
            set
            {
                _creditoMateriaPensum = value;
            }
        }


        public List<Materia> Prelaciones
        {
            get
            {
                return _prelacionMateriaPensum;
            }
            set
            {
                _prelacionMateriaPensum = value;
            }
        }

        #endregion

        #region Metodos
        #endregion
    }
}